package com.wisnews.pojo.sr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuyd
 * @since 2021-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_sr_comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论表主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String commentId;

    /**
     * 对应新闻id
     */
    private String newsId;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 评论内容
     */
    private String commentText;

    /**
     * 状态 1：启用 0 ：禁用
     */
    private String state;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private LocalDateTime createtime;

    /**
     * 修改时间
     */
    @TableField("modifyTime")
    private LocalDateTime modifytime;


}
